<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        input {
            display: none;
        }
        
        .box {
            width: 600px;
            overflow: hidden;
            /* 隐藏盒子超出width的内容,wodth不能省*/
            left: 600px;
            top: 100px;
            position: absolute;
        }
        
        .box ul {
            transition: 1s;
            width: 3600px;
            list-style: none;
        }
        
        .box ul li {
            float: left;
            width: 600px;
        }
        
        .box ul li img {
            width: 100%;
        }
        
        #button1:checked~ul {
            margin-left: 0;
        }
        
        #button2:checked~ul {
            margin-left: -600px;
        }
        
        #button3:checked~ul {
            margin-left: -1200px;
        }
        
        #button4:checked~ul {
            margin-left: -1800px;
        }
        
        #button5:checked~ul {
            margin-left: -2400px;
        }
        
        #button6:checked~ul {
            margin-left: -3000px;
        }
        
        .box .left label {
            width: 20px;
            height: 0;
            border-bottom: 20px solid transparent;
            border-top: 20px solid transparent;
            border-right: 20px solid rgb(197, 189, 186);
            position: absolute;
            left: 3px;
            top: 0;
            bottom: 0;
            margin: auto 0;
            display: none;
        }
        
        .box .left label:hover {
            border-right: 20px solid rgb(255, 255, 255);
            cursor: pointer;
        }
        
        .box .right label {
            width: 20px;
            height: 0;
            border-bottom: 20px solid transparent;
            border-top: 20px solid transparent;
            border-left: 20px solid rgb(197, 189, 186);
            position: absolute;
            right: 3px;
            top: 0;
            bottom: 0;
            margin: auto 0;
            display: none;
        }
        
        .box .right label:hover {
            border-left: 20px solid rgb(255, 255, 255);
            cursor: pointer;
        }
        
        .box .round {
            position: absolute;
            bottom: 25px;
            left: 50%;
            margin-left: -77px;
            /* 宽度的一半 */
        }
        /*底部按钮样式*/
        
        .box .round label {
            width: 22px;
            height: 22px;
            background-color: aliceblue;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0px 0px 5px 5px #ccc inset;
        }
        
        #button1:checked~.round .color1 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        
        #button2:checked~.round .color2 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        
        #button3:checked~.round .color3 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        
        #button4:checked~.round .color4 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        
        #button5:checked~.round .color5 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        
        #button6:checked~.round .color6 {
            box-shadow: 0px 0px 5px 5px #fd0404 inset;
        }
        /*右边箭头*/
        /*上一个开关被打开的时候，给出下一个开关*/
        
        #button1:checked~.right label:nth-child(2) {
            display: block;
        }
        
        #button2:checked~.right label:nth-child(3) {
            display: block;
        }
        
        #button3:checked~.right label:nth-child(4) {
            display: block;
        }
        
        #button4:checked~.right label:nth-child(5) {
            display: block;
        }
        
        #button5:checked~.right label:nth-child(6) {
            display: block;
        }
        
        #button6:checked~.right label:nth-child(1) {
            display: block;
        }
        
        /*.box .arrow-right:hover {*/
        /*    border-left: 20px solid rgb(255, 255, 255);*/
        /*    cursor: pointer;*/
        /*}*/
        /*左边箭头*/
        
        #button6:checked~.left label:nth-child(5) {
            display: block;
        }
        
        #button5:checked~.left label:nth-child(4) {
            display: block;
        }
        
        #button4:checked~.left label:nth-child(3) {
            display: block;
        }
        
        #button3:checked~.left label:nth-child(2) {
            display: block;
        }
        
        #button2:checked~.left label:nth-child(1) {
            display: block;
        }
        
        #button1:checked~.left label:nth-child(6) {
            display: block;
        }
    </style>
</head>

<body>

    <div class="box">
        <input type="radio" id="button1" name="button" checked="">
        <input type="radio" id="button2" name="button">
        <input type="radio" id="button3" name="button">
        <input type="radio" id="button4" name="button">
        <input type="radio" id="button5" name="button">
        <input type="radio" id="button6" name="button">
        <ul>
            <!-- ul是一个单独的盒子 -->
            <li><img class="img1" src="a1.jpg"></li>
            <li><img class="img2" src="a2.jpg"></li>
            <li><img class="img3" src="a3.jpg"></li>
            <li><img class="img4" src="a4.jpg"></li>
            <li><img class="img5" src="a5.jpg"></li>
            <li><img class="img6" src="a6.jpg"></li>
        </ul>
        <div class="round">
            <label for="button1" class="color1"></label>
            <label for="button2" class="color2"></label>
            <label for="button3" class="color3"></label>
            <label for="button4" class="color4"></label>
            <label for="button5" class="color5"></label>
            <label for="button6" class="color6"></label>
        </div>
        <div class="left">
            <label for="button1"> </label>
            <label for="button2"> </label>
            <label for="button3"> </label>
            <label for="button4"> </label>
            <label for="button5"> </label>
            <label for="button6"> </label>
        </div>

        <div class="right">
            <label for="button1"> </label>
            <label for="button2"> </label>
            <label for="button3"> </label>
            <label for="button4"> </label>
            <label for="button5"> </label>
            <label for="button6"> </label>
        </div>



    </div>






</body>

</html>